package cn.ccenjie.pp;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * @author cenjunjie
 * @date 2018/7/9
 */
public class App {
    public static void main(String args[]) {
        // 测试连续流信息
        Stream<String> stream = Arrays.stream(new String[]{"张三", "李四", "Time", "JJ"});
        stream.filter(e -> e.equals("张三"));
        List<String> list = stream.collect(Collectors.toList());
        list.forEach(e -> System.out.println(e));
    }
}
